﻿namespace Tuxedo.Compile
{
	internal class SignPrefixExpression : Expression
	{
		private Expression expression;

		public SignPrefixExpression(Expression expression, bool isNegative)
		{
			this.expression = expression;

			Constant constantValue = expression as Constant;
			if (constantValue != null)
			{
				this.EffectiveValue = constantValue.Negative();
			}
		}
	}
}
